Skip to main content

All Questions

Tagged with
11votes
4answers
20kviews

Determine if a file is either in JSON or XML format

The purpose of this function is to determine if report_input_file is either in JSON format or XML format, this is what I came up with, just want to know if this is ...
JonB's user avatar
  • 451
3votes
1answer
2kviews

Dirty XML-to-JSON parser

I have that XML-to-JSON function based on ElementTree. It looks very simple but until now it does what it's supposed to do: give a JSON description of the document'...
outforawhile's user avatar
1vote
1answer
251views

Parsing XML file containing some events

I'm a beginner and have written my first Python module that parses a XML file containing some events and prints them out to stdout as JSON. I would appreciate some ...
user avatar

close